//
//  BBGestureBaseController.h
//  TmChat
//
//  Created by Stn on 2019/9/18.
//  Copyright © 2019 onlysea. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@protocol BBGestureBaseControllerDelegate <NSObject>

/**
 返回控制器

 @param ViewController self
 */
-(void)GoBackVc:(UIViewController *)ViewController;

/**
 导航栏Right按钮点击事件

 @param viewController self
 */
- (void)clickRightItemWithViewController:(UIViewController *)viewController;

- (void)clickRightItemWithViewController:(UIViewController *)viewController forTag:(NSString *)tag;

- (void)clickRightItemWithBarButtonItem:(UIBarButtonItem *)item;
@end
@interface BBGestureBaseController : UIViewController
@property (nonatomic,weak) id<BBGestureBaseControllerDelegate>BBdelegate;

/**
 创建导航栏Right按钮

 @param title 按钮文字
 */
- (void)CreateNavRightButtonWithTitle:(NSString *)title;

/**
 创建导航栏Right按钮

 @param title 按钮文字
 @param tag 按钮tag
 */
- (void)CreateNavRightButtonWithTitle:(NSString *)title forTag:(NSString *)tag;


-(void)CreateNavRightItemWithTitle:(NSString *)title;
@end

NS_ASSUME_NONNULL_END
